package com.company.eos.mapper;

import com.company.eos.domain.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author Song, Wei
 */
@Mapper
@Repository
public interface DeptMapper {

    public ArrayList<HashMap> searchAllDept();

    public HashMap searchById(int id);

    /**
     * 查询部门分页数据
     *
     * @param param
     * @return
     */
    ArrayList<HashMap> searchDeptByPage(HashMap param);

    long searchDeptCount(HashMap param);

    /**
     * 添加新部门
     *
     * @param dept
     * @return
     */
    int insert(Dept dept);

    /**
     * 修改部门信息
     *
     * @param dept
     * @return
     */
    int update(Dept dept);

    boolean searchCanDelete(Integer[] ids);

    int deleteDeptByIds(Integer[] ids);
}




